home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / gtxt.arc / GTXT.DOC < prev    next >
Encoding:
Text File  |  1987-03-11  |  2.8 KB  |  62 lines

  1.  
  2.                                GTXT.DOC v1.1
  3.                              (MS-DOS Version)
  4.                                  05/08/86
  5. Eric Gans
  6. French Department UCLA
  7. Los Angeles, CA 90024
  8.  
  9.      This   is   an   MS-DOS version of a little CP/M  program   that  makes 
  10. textfiles  into COM files to print them on screen  with  a single command. 
  11.  
  12. GTXT11.COM  is  an improved version of an old  CP/M  program called TXT.COM.  
  13. It offers the following features: 
  14.  
  15.   - zeroes high bit to read (say) WS doc mode files
  16.   - allows  printing  of  control  characters using  "^"  
  17.   - page breaks can be forced with "~"
  18.   - literals  of "^" and "~" can be entered if preceded by "%"  ("%%"  gives 
  19.     "%") 
  20.   - Issues  a "[More]"  every  23 lines for text file longer than 23  lines;  
  21.     when   you  type a character the  [More]  is blanked  out   and  doesn't  
  22.     waste a line on  the screen.  Type ^C to exit. 
  23.  
  24. GTXT.000  is just GTXT.COM with the 0 (=end) byte missing.  It  can be  used 
  25. like GTXT.COM:   you read it into the text  file with  something   like  ^KR  
  26. in WS and find some way   of   putting   a binary  0  at  the  end.  But its 
  27. real purpose is  for  use  with GTXT_COM.BAT,  which  allows  you  to create 
  28. a  COM  file  from  a  pre-existing text file with  no  editing  whatsoever.  
  29. GTXT_COM.BAT  containsthe following line: 
  30.  
  31.                copy gtxt.000+%1.%2+gtxt.dat %1.com
  32.  
  33. The  parameters  %1  and %2 are,  respectively,   the filename  and filetype  
  34. of  your textfile.    They must be separated by a  space.   GTXT.DAT is a 2-
  35. byte text file that contains a binary 0 followed  by 1AH;   the  0 serves to 
  36. mark the end of the read for the COM file you create. 
  37.  
  38. Example:   suppose you have a little textfile called BLRK.TXT that you  want 
  39. to transform into a COM file.  Just enter: 
  40.  
  41.                         GTXT_COM BLRK TXT
  42.  
  43. and  you  will  have  an  executable  file  BLRK.COM  while  still retaining 
  44. the original BLRK.TXT. 
  45.  
  46. If you only type in "GTXT_COM"  the batch file will prompt you for the  file 
  47. name  and extension,  so you can just call GTXT_COM from a menu if you  want 
  48. rather than just from the command line (A>). You can include a  directory in 
  49. the  file name if you want (e.g.,  \utility\filename)  if GTXT_COM is  in  a 
  50. different directory.  The COM file will be created in the same directory  as 
  51. GTXT. 
  52.  
  53. If a file named filename.COM already exists, the GTXT_COM.BAT file will tell 
  54. you and stop execution so you can't accidentally overwrite a file. 
  55.  
  56. All the features of GTXT.COM will be implemented.  Just be careful that  you 
  57. have no (apparent) control characters in your  text.   In WS,  for instance, 
  58. if you underline with ^PS an ^S will remain in your   text and be printed as 
  59. CHR$(19).   (If you want to display the characters "^S", enter "%^S".) 
  60. 
  61.  
  62.